package com.xnyzc.lhy.mis.feign.fallback.didi;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.mis.feign.didi.DriverAssignedService;
import com.xnyzc.lhy.order.entity.param.synchronization.StatusCallbackParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class DriverAssignedServiceFallback implements DriverAssignedService {

    @Override
    public Rv statusCallback(StatusCallbackParam statusCallbackParam) {
        log.info("ORDER_HISTORY 订单号:[{}],滴滴推送:同步滴滴司机状态,推送失败,参数:[{}]", statusCallbackParam.getOrder_id(), statusCallbackParam);
        log.error("(ORDER服务)滴滴推送：同步滴滴司机状态、推送失败，参数：{}", statusCallbackParam.toString());
        return Rv.error(EErrorCode.networkTimeout);
    }
}
